<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Karamelo: material.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="karamelodoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="karamelo_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.karamelo.org"><img alt="Logo" src="Karamelo_logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://www.karamelo.org">Karamelo</a>
   &#160;<span id="projectnumber">714599e9</span>
   </div>
   <div id="projectbrief">Parallel Material Point Method Simulator</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('material_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">material.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- c++ -*- ----------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *                    ***       Karamelo       ***</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *               Parallel Material Point Method Simulator</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * </span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * Copyright (2019) Alban de Vaucorbeil, alban.devaucorbeil@monash.edu</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Materials Science and Engineering, Monash University</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Clayton VIC 3800, Australia</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * This software is distributed under the GNU General Public License.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * ----------------------------------------------------------------------- */</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifndef MPM_MATERIAL_H</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#define MPM_MATERIAL_H</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;damage.h&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;eos.h&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;pointers.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;strength.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;temperature.h&quot;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classMat.html">   45</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMat.html">Mat</a> {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classMat.html#a8d7cbff09df3a813da2f7cb3f088641d">   47</a></span>&#160;  <span class="keywordtype">string</span> <a class="code" href="classMat.html#a8d7cbff09df3a813da2f7cb3f088641d">id</a>;                                         </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classMat.html#a7de82cc2fe83e6691138ebb0842eac3d">   48</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classMat.html#a7de82cc2fe83e6691138ebb0842eac3d">type</a>;                                          </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classMat.html#aad36ec4f010b95a0b96b95a769738925">   49</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classMat.html#aad36ec4f010b95a0b96b95a769738925">rigid</a> = <span class="keyword">false</span>;                                </div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classMat.html#a9d8a35fb1a55534f3f368366957bbb09">   50</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classEOS.html">EOS</a> *<a class="code" href="classMat.html#a9d8a35fb1a55534f3f368366957bbb09">eos</a> = NULL;                             </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classMat.html#a2d21b341f4d7a12742beb7c5a001ba9d">   51</a></span>&#160;  <span class="keyword">class </span>Strength *<a class="code" href="classMat.html#a2d21b341f4d7a12742beb7c5a001ba9d">strength</a> = NULL;                   </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classMat.html#ac7f31acf3e42d833898bcbf532c97814">   52</a></span>&#160;  <span class="keyword">class </span>Damage *<a class="code" href="classMat.html#ac7f31acf3e42d833898bcbf532c97814">damage</a> = NULL;                       </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classMat.html#ae59a54152f8bb7a3fce342c4383b54e0">   53</a></span>&#160;  <span class="keyword">class </span>Temperature *<a class="code" href="classMat.html#ae59a54152f8bb7a3fce342c4383b54e0">temp</a> = NULL;                    </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classMat.html#ab0208430f0d9e3d54e7a2d9ab6587dcd">   54</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#ab0208430f0d9e3d54e7a2d9ab6587dcd">rho0</a>;                                       </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classMat.html#a1bc950122c6cab66337ec9d7b2b6e33d">   55</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#a1bc950122c6cab66337ec9d7b2b6e33d">E</a>;                                          </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classMat.html#a6bfd44cc593a5065ed2dd70beb0cb6ed">   56</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#a6bfd44cc593a5065ed2dd70beb0cb6ed">nu</a>;                                         </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classMat.html#a66a06e0211b16686d57927b15b7ccc32">   57</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#a66a06e0211b16686d57927b15b7ccc32">G</a>;                                          </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classMat.html#af322cf55ceb4272c7d320e9163c41eac">   58</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#af322cf55ceb4272c7d320e9163c41eac">K</a>;                                          </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classMat.html#aa5046a1390287f1ef6c5d62b4d53d664">   59</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#aa5046a1390287f1ef6c5d62b4d53d664">lambda</a>;                                     </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classMat.html#a71a36f9faf871b40c37bd40248dcdc1e">   60</a></span>&#160;  <span class="keywordtype">double</span> <a class="code" href="classMat.html#a71a36f9faf871b40c37bd40248dcdc1e">signal_velocity</a>;                            </div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <a class="code" href="classMat.html#a7fbff3e61074eb1b828553d0a61b5cf3">Mat</a>(<span class="keywordtype">string</span>, <span class="keywordtype">int</span>, <span class="keyword">class</span> <a class="code" href="classEOS.html">EOS</a> *, <span class="keyword">class</span> Strength *, <span class="keyword">class</span> Damage *,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;      <span class="keyword">class</span> Temperature *);                          </div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <a class="code" href="classMat.html#a7fbff3e61074eb1b828553d0a61b5cf3">Mat</a>(<span class="keywordtype">string</span>, <span class="keywordtype">int</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>, <span class="keywordtype">double</span>);          </div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <a class="code" href="classMat.html#a7fbff3e61074eb1b828553d0a61b5cf3">Mat</a>(<span class="keywordtype">string</span>, <span class="keywordtype">int</span>);                                  </div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;};</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classMaterial.html">   70</a></span>&#160;<span class="keyword">class </span><a class="code" href="classMaterial.html">Material</a> : <span class="keyword">protected</span> <a class="code" href="classPointers.html">Pointers</a> {</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classMaterial.html#a1a63e9f938e2fce7913159be963044cb">   72</a></span>&#160;  <span class="keywordtype">string</span> <a class="code" href="classMaterial.html#a1a63e9f938e2fce7913159be963044cb">id</a>;                                    </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classMaterial.html#a5b2ef735e923b52fb66ab45885a0a5d4">   73</a></span>&#160;  vector&lt;Mat&gt; <a class="code" href="classMaterial.html#a5b2ef735e923b52fb66ab45885a0a5d4">materials</a>;                        </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classMaterial.html#a350a88428b56b5969aecfdea2ee31d09">   74</a></span>&#160;  vector&lt;class EOS *&gt; <a class="code" href="classMaterial.html#a350a88428b56b5969aecfdea2ee31d09">EOSs</a>;                     </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classMaterial.html#aa0bc8ab7effcf2b993e7b8b9474cc0bb">   75</a></span>&#160;  vector&lt;class Strength *&gt; <a class="code" href="classMaterial.html#aa0bc8ab7effcf2b993e7b8b9474cc0bb">strengths</a>;           </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classMaterial.html#af0645217a47b944c4a2596c50612ea0d">   76</a></span>&#160;  vector&lt;class Damage *&gt; <a class="code" href="classMaterial.html#af0645217a47b944c4a2596c50612ea0d">damages</a>;               </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classMaterial.html#aaa7abcc983539958a6c1b240ab01f36f">   77</a></span>&#160;  vector&lt;class Temperature *&gt; <a class="code" href="classMaterial.html#aaa7abcc983539958a6c1b240ab01f36f">temperatures</a>;     </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  </div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <a class="code" href="classMaterial.html">Material</a>(<span class="keyword">class</span> <a class="code" href="classMPM.html">MPM</a> *);                        </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classMaterial.html">Material</a>();                          </div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="keywordtype">void</span> add_strength(vector&lt;string&gt;);            </div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordtype">int</span> find_strength(<span class="keywordtype">string</span>);                    </div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <span class="keywordtype">void</span> add_EOS(vector&lt;string&gt;);                 </div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordtype">int</span> find_EOS(<span class="keywordtype">string</span>);                         </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="keywordtype">void</span> add_material(vector&lt;string&gt;);            </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <span class="keywordtype">int</span> find_material(<span class="keywordtype">string</span>);                    </div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keywordtype">void</span> add_damage(vector&lt;string&gt;);              </div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <span class="keywordtype">int</span> find_damage(<span class="keywordtype">string</span>);                      </div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keywordtype">void</span> add_temperature(vector&lt;string&gt;);         </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="keywordtype">int</span> find_temperature(<span class="keywordtype">string</span>);                 </div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="keyword">typedef</span> Strength *(*StrengthCreator)(<a class="code" href="classMPM.html">MPM</a> *,vector&lt;string&gt;);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keyword">typedef</span> map&lt;string,StrengthCreator&gt; StrengthCreatorMap;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  StrengthCreatorMap *strength_map;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <span class="keyword">typedef</span> <a class="code" href="classEOS.html">EOS</a> *(*EOSCreator)(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="keyword">typedef</span> map&lt;string,EOSCreator&gt; EOSCreatorMap;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  EOSCreatorMap *EOS_map;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keyword">typedef</span> Damage *(*DamageCreator)(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="keyword">typedef</span> map&lt;string,DamageCreator&gt; DamageCreatorMap;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  DamageCreatorMap *damage_map;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keyword">typedef</span> Temperature *(*TemperatureCreator)(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keyword">typedef</span> map&lt;string,TemperatureCreator&gt; TemperatureCreatorMap;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  TemperatureCreatorMap *temperature_map;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460">  109</a></span>&#160;  <span class="keyword">enum</span> <a class="code" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460">constitutive_model</a> {</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460a2b2391eb59d443b5f234d565b0f87bba">  110</a></span>&#160;    LINEAR = 0,      </div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460aeef7335a2f307bf151738e4ed5eac79b">  111</a></span>&#160;    NEO_HOOKEAN = 1, </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460a248d5834afd9f38e70226a30c25c22a8">  112</a></span>&#160;    SHOCK = 2,       </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classMaterial.html#aaaafdc8f9eee314481297ab859397460a2eff4c5b77d7ca1e43903011ab31e3c1">  113</a></span>&#160;    RIGID = 3,       </div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  };</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">static</span> Strength *strength_creator(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">static</span> <a class="code" href="classEOS.html">EOS</a> *EOS_creator(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">static</span> Damage *damage_creator(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">static</span> Temperature *temperature_creator(MPM *,vector&lt;string&gt;);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <span class="keyword">const</span> map&lt;string, string&gt; usage = {{<span class="stringliteral">&quot;rigid&quot;</span>,        <span class="stringliteral">&quot;Usage: material(material-ID, \033[1;32mrigid\033[0m)\n&quot;</span>},</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                                     {<span class="stringliteral">&quot;linear&quot;</span>,       <span class="stringliteral">&quot;Usage: material(material-ID, \033[1;32mlinear\033[0m, rho, E, nu, optional: damage-ID)\n&quot;</span>},</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                                     {<span class="stringliteral">&quot;neo-hookean&quot;</span>,  <span class="stringliteral">&quot;Usage: material(material-ID, \033[1;32mneo-hookean\033[0m, rho, E, nu, optional: damage-ID)\n&quot;</span>},</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                                     {<span class="stringliteral">&quot;eos-strength&quot;</span>, <span class="stringliteral">&quot;Usage: material(material-ID, \033[1;32meos-strength\033[0m, eos-ID, strength-ID, optional: damage-ID, optional: temperature-ID)\n&quot;</span>}};</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="keyword">const</span> map&lt;string, int&gt;    Nargs = {{<span class="stringliteral">&quot;rigid&quot;</span>,        2},</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                                     {<span class="stringliteral">&quot;linear&quot;</span>,       5},</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                                     {<span class="stringliteral">&quot;neo-hookean&quot;</span>,  5},</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                                     {<span class="stringliteral">&quot;eos-strength&quot;</span>, 4}};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;};</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="ttc" id="classMat_html_aa5046a1390287f1ef6c5d62b4d53d664"><div class="ttname"><a href="classMat.html#aa5046a1390287f1ef6c5d62b4d53d664">Mat::lambda</a></div><div class="ttdeci">double lambda</div><div class="ttdoc">1st Lame parameter  </div><div class="ttdef"><b>Definition:</b> material.h:59</div></div>
<div class="ttc" id="classMat_html_a9d8a35fb1a55534f3f368366957bbb09"><div class="ttname"><a href="classMat.html#a9d8a35fb1a55534f3f368366957bbb09">Mat::eos</a></div><div class="ttdeci">class EOS * eos</div><div class="ttdoc">Pointer to the EOS. </div><div class="ttdef"><b>Definition:</b> material.h:50</div></div>
<div class="ttc" id="classMat_html_a7de82cc2fe83e6691138ebb0842eac3d"><div class="ttname"><a href="classMat.html#a7de82cc2fe83e6691138ebb0842eac3d">Mat::type</a></div><div class="ttdeci">int type</div><div class="ttdoc">Either RIGID, LINEAR, NEO_HOOKEAN, or SHOCK with values from Material::constitutive_model. </div><div class="ttdef"><b>Definition:</b> material.h:48</div></div>
<div class="ttc" id="classMaterial_html_a350a88428b56b5969aecfdea2ee31d09"><div class="ttname"><a href="classMaterial.html#a350a88428b56b5969aecfdea2ee31d09">Material::EOSs</a></div><div class="ttdeci">vector&lt; class EOS * &gt; EOSs</div><div class="ttdoc">List of defined Equations of State. </div><div class="ttdef"><b>Definition:</b> material.h:74</div></div>
<div class="ttc" id="classMaterial_html_af0645217a47b944c4a2596c50612ea0d"><div class="ttname"><a href="classMaterial.html#af0645217a47b944c4a2596c50612ea0d">Material::damages</a></div><div class="ttdeci">vector&lt; class Damage * &gt; damages</div><div class="ttdoc">List of defined Damage laws. </div><div class="ttdef"><b>Definition:</b> material.h:76</div></div>
<div class="ttc" id="classMat_html_a8d7cbff09df3a813da2f7cb3f088641d"><div class="ttname"><a href="classMat.html#a8d7cbff09df3a813da2f7cb3f088641d">Mat::id</a></div><div class="ttdeci">string id</div><div class="ttdoc">Identification name of the material. </div><div class="ttdef"><b>Definition:</b> material.h:47</div></div>
<div class="ttc" id="classMat_html_a6bfd44cc593a5065ed2dd70beb0cb6ed"><div class="ttname"><a href="classMat.html#a6bfd44cc593a5065ed2dd70beb0cb6ed">Mat::nu</a></div><div class="ttdeci">double nu</div><div class="ttdoc">Poisson&amp;#39;s ratio . </div><div class="ttdef"><b>Definition:</b> material.h:56</div></div>
<div class="ttc" id="classMPM_html"><div class="ttname"><a href="classMPM.html">MPM</a></div><div class="ttdef"><b>Definition:</b> mpm.h:29</div></div>
<div class="ttc" id="classMaterial_html_a1a63e9f938e2fce7913159be963044cb"><div class="ttname"><a href="classMaterial.html#a1a63e9f938e2fce7913159be963044cb">Material::id</a></div><div class="ttdeci">string id</div><div class="ttdoc">Identification name of the material. </div><div class="ttdef"><b>Definition:</b> material.h:72</div></div>
<div class="ttc" id="classMat_html_a2d21b341f4d7a12742beb7c5a001ba9d"><div class="ttname"><a href="classMat.html#a2d21b341f4d7a12742beb7c5a001ba9d">Mat::strength</a></div><div class="ttdeci">class Strength * strength</div><div class="ttdoc">Pointer to the Strength (flow stress rule) </div><div class="ttdef"><b>Definition:</b> material.h:51</div></div>
<div class="ttc" id="classMat_html_a71a36f9faf871b40c37bd40248dcdc1e"><div class="ttname"><a href="classMat.html#a71a36f9faf871b40c37bd40248dcdc1e">Mat::signal_velocity</a></div><div class="ttdeci">double signal_velocity</div><div class="ttdoc">Signal velocity in the reference state . </div><div class="ttdef"><b>Definition:</b> material.h:60</div></div>
<div class="ttc" id="classEOS_html"><div class="ttname"><a href="classEOS.html">EOS</a></div><div class="ttdef"><b>Definition:</b> eos.h:26</div></div>
<div class="ttc" id="classMat_html_ac7f31acf3e42d833898bcbf532c97814"><div class="ttname"><a href="classMat.html#ac7f31acf3e42d833898bcbf532c97814">Mat::damage</a></div><div class="ttdeci">class Damage * damage</div><div class="ttdoc">Pointer to the Damage law. </div><div class="ttdef"><b>Definition:</b> material.h:52</div></div>
<div class="ttc" id="classMaterial_html"><div class="ttname"><a href="classMaterial.html">Material</a></div><div class="ttdef"><b>Definition:</b> material.h:70</div></div>
<div class="ttc" id="classMaterial_html_a5b2ef735e923b52fb66ab45885a0a5d4"><div class="ttname"><a href="classMaterial.html#a5b2ef735e923b52fb66ab45885a0a5d4">Material::materials</a></div><div class="ttdeci">vector&lt; Mat &gt; materials</div><div class="ttdoc">List of defined materials. </div><div class="ttdef"><b>Definition:</b> material.h:73</div></div>
<div class="ttc" id="classMaterial_html_aa0bc8ab7effcf2b993e7b8b9474cc0bb"><div class="ttname"><a href="classMaterial.html#aa0bc8ab7effcf2b993e7b8b9474cc0bb">Material::strengths</a></div><div class="ttdeci">vector&lt; class Strength * &gt; strengths</div><div class="ttdoc">List of defined Strengths. </div><div class="ttdef"><b>Definition:</b> material.h:75</div></div>
<div class="ttc" id="classMaterial_html_aaaafdc8f9eee314481297ab859397460"><div class="ttname"><a href="classMaterial.html#aaaafdc8f9eee314481297ab859397460">Material::constitutive_model</a></div><div class="ttdeci">constitutive_model</div><div class="ttdef"><b>Definition:</b> material.h:109</div></div>
<div class="ttc" id="classMat_html_ab0208430f0d9e3d54e7a2d9ab6587dcd"><div class="ttname"><a href="classMat.html#ab0208430f0d9e3d54e7a2d9ab6587dcd">Mat::rho0</a></div><div class="ttdeci">double rho0</div><div class="ttdoc">Density in the reference state . </div><div class="ttdef"><b>Definition:</b> material.h:54</div></div>
<div class="ttc" id="classMat_html"><div class="ttname"><a href="classMat.html">Mat</a></div><div class="ttdef"><b>Definition:</b> material.h:45</div></div>
<div class="ttc" id="classPointers_html"><div class="ttname"><a href="classPointers.html">Pointers</a></div><div class="ttdef"><b>Definition:</b> pointers.h:29</div></div>
<div class="ttc" id="classMaterial_html_aaa7abcc983539958a6c1b240ab01f36f"><div class="ttname"><a href="classMaterial.html#aaa7abcc983539958a6c1b240ab01f36f">Material::temperatures</a></div><div class="ttdeci">vector&lt; class Temperature * &gt; temperatures</div><div class="ttdoc">List of defined Temperature laws. </div><div class="ttdef"><b>Definition:</b> material.h:77</div></div>
<div class="ttc" id="classMat_html_aad36ec4f010b95a0b96b95a769738925"><div class="ttname"><a href="classMat.html#aad36ec4f010b95a0b96b95a769738925">Mat::rigid</a></div><div class="ttdeci">bool rigid</div><div class="ttdoc">True if the material is rigid, false otherwise. </div><div class="ttdef"><b>Definition:</b> material.h:49</div></div>
<div class="ttc" id="classMat_html_a7fbff3e61074eb1b828553d0a61b5cf3"><div class="ttname"><a href="classMat.html#a7fbff3e61074eb1b828553d0a61b5cf3">Mat::Mat</a></div><div class="ttdeci">Mat(string, int, class EOS *, class Strength *, class Damage *, class Temperature *)</div><div class="ttdoc">Creates an elasto-plastic material. </div><div class="ttdef"><b>Definition:</b> material.cpp:419</div></div>
<div class="ttc" id="classMat_html_a66a06e0211b16686d57927b15b7ccc32"><div class="ttname"><a href="classMat.html#a66a06e0211b16686d57927b15b7ccc32">Mat::G</a></div><div class="ttdeci">double G</div><div class="ttdoc">Shear modulus. </div><div class="ttdef"><b>Definition:</b> material.h:57</div></div>
<div class="ttc" id="classMat_html_a1bc950122c6cab66337ec9d7b2b6e33d"><div class="ttname"><a href="classMat.html#a1bc950122c6cab66337ec9d7b2b6e33d">Mat::E</a></div><div class="ttdeci">double E</div><div class="ttdoc">Young&amp;#39;s modulus. </div><div class="ttdef"><b>Definition:</b> material.h:55</div></div>
<div class="ttc" id="classMat_html_af322cf55ceb4272c7d320e9163c41eac"><div class="ttname"><a href="classMat.html#af322cf55ceb4272c7d320e9163c41eac">Mat::K</a></div><div class="ttdeci">double K</div><div class="ttdoc">Bulk modulus. </div><div class="ttdef"><b>Definition:</b> material.h:58</div></div>
<div class="ttc" id="classMat_html_ae59a54152f8bb7a3fce342c4383b54e0"><div class="ttname"><a href="classMat.html#ae59a54152f8bb7a3fce342c4383b54e0">Mat::temp</a></div><div class="ttdeci">class Temperature * temp</div><div class="ttdoc">Pointer to the Temperature law. </div><div class="ttdef"><b>Definition:</b> material.h:53</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>material.h</b></li>
    <li class="footer">Generated on Tue Jul 7 2020 22:31:23 for Karamelo by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
<!-- Matomo -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.sylphide-consulting.com/matomo/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '20']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.sylphide-consulting.com/matomo/piwik.php?idsite=20&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>
